import { notification, Icon } from 'antd';

export const customNotification = (message, description) => {
    const args = {
      message: message,
      description: description,
      duration: 3,
      icon: <Icon type="meh" style={{ color: '#108ee9' }} />
    };
    notification.open(args);
};

export const errNotification = (message, description) => {
    const args = {
      message: message,
      description: description,
      duration: 3,
      icon: <Icon type="frown" style={{ color: '#801919' }} />
    };
    notification.open(args);
};

export const successNotification = (message, description) => {
    const args = {
      message: message,
      description: description,
      duration: 3,
      icon: <Icon type="smile" style={{ color: '#176B2C' }} />

    };
    notification.open(args);
};
